window.addEventListener("popstate", function (e) {
    // console.log("监听回退");
    if (layer.index != 0) {
        layer.close(layer.index);
    }
}, false);

function pushHistory() {
    window.history.pushState(1, null);
}